package com.youkeda.service.impl;

import com.youkeda.model.Classes;
import com.youkeda.service.ClassesService;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xshuai
 */
public class ClassesServiceImpl implements ClassesService {
    private static List<Classes> classesList;

    @Override
    public void add(Classes classes) {
        if (classesList == null) {
            classesList = new ArrayList<>();
        }
        classesList.add(classes);

    }

    @Override
    public List<Classes> getAll() {

        return classesList;
    }
}
